What Are Value Types And Reference Types in .net framework ? Anonymous User73312-Dec-2019please explain What Are Value Types And Reference Types in .net framework ?.netc# .net Updated on 12-Dec-2019
Nishi Tiwari
13-Dec-2019Data Types
Data types can be defined as which type of value a variable must hold during program execution.
Syntax
[datatypes] [variablename];
[datatypes] [variablename]=value;
Different data types
Value Data Type: - It stores value of variable directly into the memory.
• Predefined data types:-int, float, bool, double etc.
• User defined data types:-enum, struct.
Reference Data type: - It contains reference or memory address of a variable to store value.
• Predefined data types:-string, object.
• User defined data types:-class, interface etc.